import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import SignUp from '@/components/SignUp'
import SignIn from '@/components/SignIn'
import Msg from '@/components/Msg'
import PaySuccess from '@/components/pay/Msg'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }, {
      path: '/join',
      name: 'SignUp',
      component: SignUp
    }, {
      path: '/login',
      name: 'SignIn',
      component: SignIn
    }, {
      path: '/success',
      name: 'JoinSuccess',
      component: Msg
    }, {
      path: '/pay/success',
      name: 'PaySuccess',
      component: PaySuccess
    }
  ]
})
